package org.ftc.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Repository
public class RunValidationDao {
	
	@Autowired
	private SessionFactory sessionFactory;
	public Session getSession() { 
	    return sessionFactory.getCurrentSession();
	}
	
	public void validation() {
		try{
			getSession().createSQLQuery("select 1").list();
		}catch( Exception e){
			e.printStackTrace();
		}
	}	
}
